<?php $this -> load -> view('adminx/header'); ?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
	<!-- BEGIN SIDEBAR -->
	<?php $this -> load -> view('adminx/mune'); ?>
	<!-- END SIDEBAR -->
	<!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- /.modal -->
			<h3 class="page-title"> <?php echo $title; ?> <small><?php echo $en; ?></small></h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="/adminx">首页</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#"><?php echo $title; ?></a>
					</li>
				</ul>
			</div>
			<!-- END PAGE HEADER-->
			<div class="clearfix"></div>
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<!-- BEGIN REGIONAL STATS PORTLET-->
					<div class="note note-success">
						<p>1，Logo为微信转发时的默认图标；</p>
						<p>2，系统背景为微信分销中心顶部的背景图片；</p>
					</div>
					<div class="portlet light ">
						<div class="portlet-title">
							<div class="caption">
								<i class="icon-share font-red-sunglo"></i>
								<span class="caption-subject font-red-sunglo bold uppercase"><?php echo $title; ?></span>
							</div>
							<div class="actions">
								<a class="btn btn-circle btn-icon-only blue" href="javascript:;" onclick="alert_ts('<?php echo $this -> config -> item('xt_ts'); ?>')"> <i class=" icon-bulb"></i> </a>
								<a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;"> </a>
							</div>
						</div>
						<div class="portlet-body">
				<form class="form-horizontal" method="post" id="setting">
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>机构名称</label>
							<input type="text" class="form-control required" id="name" name="name" value="<?php echo $m['name']; ?>">
						</div>
					</div>
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>微信wxAppId</label>
							<input type="text" class="form-control" id="wxAppId" name="wxAppId" value="<?php echo $m['wxAppId']; ?>">
						</div>
					</div>
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>微信wxAppSecret</label>
							<input type="text" class="form-control" id="wxAppSecret" name="wxAppSecret" value="<?php echo $m['wxAppSecret']; ?>">
						</div>
					</div>
					
					
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>展区红包金额</label>
							<input type="text" class="form-control" id="zp_je" name="zp_je" value="<?php echo $m['zp_je']; ?>">
						</div>
					</div>
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>展区代理红包金额</label>
							<input type="text" class="form-control" id="zp_jed" name="zp_jed" value="<?php echo $m['zp_jed']; ?>">
						</div>
					</div>
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>展区每天获取红包次数</label>
							<input type="text" class="form-control" id="zp_numb" name="zp_numb" value="<?php echo $m['zp_numb']; ?>">
						</div>
					</div>
					
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>允许添加粉丝数量</label>
							<input type="text" class="form-control" id="fs_numb" name="fs_numb" value="<?php echo $m['fs_numb']; ?>">
						</div>
					</div>
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>添加粉丝奖励积分</label>
							<input type="text" class="form-control" id="fs_je" name="fs_je" value="<?php echo $m['fs_je']; ?>">
						</div>
					</div>
					
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<label>推荐商品</label>
							<input type="text" class="form-control" id="tj_sp" name="tj_sp" value="<?php echo $m['tj_sp']; ?>">
						</div>
					</div>
					
					<div class="form-group" pd="no_empty">
						<div class="col-lg-12">
							<textarea style="height: 100px;" class="form-control" id="note" name="note" placeholder="备注或简介"><?php echo $m['note']; ?></textarea>
						</div>
					</div>
					<div class="form-group">
						<div class="col-lg-12">
						<label>上线城市 用 - 分开  例如（广州-上海-北京）</label>
						<textarea style="height: 100px;" class="form-control" id="citys" name="citys" placeholder="备注或简介"><?php echo $m['citys']; ?></textarea>
						</div>
					</div>
					<div class="form-group">
						<div class="col-lg-12">
						<label>店招</label>
						<input type="text" class="form-control" id="dianzhao" name="dianzhao" value="<?php echo $m['dianzhao']; ?>">
						</div>
					</div>
					<div class="form-group">
						<div class="col-lg-12">
						<label>logo</label>
						<?php echo $this -> form -> doform('pic', 'logo', '', $m['logo']); ?>
						</div>
					</div>
					<div class="form-group">
						<div class="col-lg-12">
						<label>系统背景</label>
						<?php echo $this -> form -> doform('pic', 'bj', '', $m['bj']); ?>
						</div>
					</div>
					<div class="form-group">
						<div class="col-lg-12">
							<button type="reset" class="btn default">
								<i class="fa fa-refresh"></i>
								重置
							</button>
							<button type="submit" class="btn blue" data-loading-text="Loading...">
								<i class="fa fa-send"></i>
								设 置
							</button>
						</div>
					</div>
				</form>
						</div>
					</div>
					<!-- END REGIONAL STATS PORTLET-->
				</div>
			</div>
		</div>
	</div>
	<!-- BEGIN QUICK SIDEBAR -->
	<?php $this -> load -> view('adminx/lt'); ?>
	<!-- END QUICK SIDEBAR -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php $this -> load -> view('adminx/footer'); ?>
<script src="/mex/global/plugins/ajaxfileupload.js"></script>
<script>
	up_form($("#setting"), "/iadmin/setting/up", "设置", function(msg) {
			if (msg.type == 1) {
				alert_ts('设置成功！');
			} else {
				alert_ts('抱歉，设置失败！');
			}
		});
</script>